@ECHO OFF
CLS
:BEGIN
ECHO.
ECHO (0). All
ECHO (1). Compiler
ECHO (2). Batch
ECHO.
set choice=
set /p choice=What do you want to clean? 
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='0' GOTO ALL
if '%choice%'=='1' GOTO COMPILER
if '%choice%'=='2' GOTO BATCH
ECHO "%choice%" is not valid, please try again.
ECHO.
GOTO BEGIN

:ALL
CALL :COMPILER
CALL :BATCH
GOTO EOF

REM Used to delete the compiler files.
:COMPILER
DEL /S /Q vcbuild\*.user
DEL /S /Q *.ncb
DEL /S /Q /A:H *.suo
RD /S /Q bin\Debug
RD /S /Q bin\Release
GOTO EOF

REM Used to delete the batch files included with Scintilla.
:BATCH
DEL /F /Q delbin.bat
DEL /F /Q delcvs.bat
DEL /F /Q zipsrc.bat
GOTO EOF

:EOF